laravel order by random

37

laravel order by random -

$galleries = App\Gallery::inRandomOrder()->get();
//Or
DB::table('gallery')->inRandomOrder()->get();

Comments

Submit
0 Comments